console: Use map_sysmem() for the pre-relocation console
authorSimon Glass <[email protected]>
Fri, 16 Jun 2017 03:37:52 +0000 (21:37 -0600)
committerSimon Glass <[email protected]>
Tue, 11 Jul 2017 16:08:19 +0000 (10:08 -0600)
commit4e6bafa56807b7ea4ebfb2eebbcf2eae674866e0
tree1f65834bb42f86f5b53738f512ca3af850bcc060
parente5a9d27fdbcf59760a7ff69597584229e24ca456
console: Use map_sysmem() for the pre-relocation console

At present this feature casts the address to a pointer. Use the
map_sysmem() function so that it will work correctly on sandbox.

Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Bin Meng <[email protected]>
Tested-by: Stephen Warren <[email protected]>
common/console.c